<template>
  <div>
    <tree :tree="tree"></tree>
  </div>
</template>

<script>
/*
  <accordion model="">
    插入表格
  </accoridon>
*/
import Tree from '@/components/tree'
export default {
  data(){
    return{
      tree:[
        {
          name:'条目1',
          people:'负责人',
          children:[
            {
              name:'条目1-1',
              people:'负责人',
              children:[]
            },
            {
              name:'条目1-2',
              people:'负责人',
              children:[ 
                {
                  name:'条目1-2-1',
                  people:'负责人',
                  children:[]
                }
              ]
            },
            {
              name:'条目1-3',
              people:'负责人',
              children:[ ]
            },
          ]
        },
        {
          name:'条目2',
          people:'负责人',
          children:[
            {
              name:'条目2-1',
              people:'负责人',
              children:[ 
              ]
            },
            {
              name:'条目2-2',
              people:'负责人',
              children:[ 
              ]
            },

          ]
        },
        {
          name:'条目3',
          people:'负责人',
          children:[]
        },

      ]
    }
  },
  components:{
    Tree
  }
}
</script>

<style lang="less" scoped>

</style>